<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Person(name,age){
            this.name = name;
            this.age = age;
        }

         Person.prototype.eat = function(){
            console.log(this.name+'正在吃九转肥肠');
        }

        const p1 = new Person('张三',19);

        // console.log(p1.__proto__ === Person.prototype);
        // console.log(Person.__proto__ === Function.prototype);
        // console.log(Person.prototype.__proto__ === Object.prototype);
        // console.log(Function.__proto__ === Function.prototype);
        // console.log(Function.prototype.__proto__ ===  Object.prototype);
        // console.log(Object.__proto__ === Function.prototype);
        // console.log(Object.prototype.__proto__ === null);

        function test(){
            console.log('test');
        }

        // console.log(test.prototype);

        console.log({name:'zhangsan',age:18});

    </script>
</body>
</html>